package com.zyl.util;

import android.content.Context;
import android.content.SharedPreferences;

public class SharedPreferencesUtil {


	public static boolean get(Context paramContext) {
		return paramContext.getSharedPreferences(
				"com.zyl.log", 0).getBoolean(
				"haveError", false);
	}

	public static void saveSetting(Context paramContext,boolean b) {
		SharedPreferences.Editor localEditor = paramContext
				.getSharedPreferences(
						"com.zyl.log", 0)
				.edit();
			localEditor.putBoolean("haveError",b);
		 
		localEditor.commit();
	}

}
